/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ar.com.wholeconsulting.pacc.gui.utils.verifiers;

import javax.swing.InputVerifier;
import javax.swing.JComponent;
import javax.swing.JTextField;

/**
 *
 * @author pable
 */
public class LongVerifier extends InputVerifier{

    @Override
    public boolean verify(JComponent input) {
        try{
            Long.parseLong(((JTextField)input).getText());
            return true;
        } catch(Exception ex){
            return false;
        }
    }

}
